#include "stdlib.h"
#include "stdio.h"
#include "string.h"




//++优先级高,dan是++是后缀++
//所以先执行*to = *from; 再 from++; to ++from++;
void copy_str3(char *from, char *to)
{
	while(*from!='\0')
	{
		*to ++ = *from ++;
	}
	*to = '\0';
}


void main()
{
	char *p = "abcdefg";
	//char *p2 = NULL;
	char p2[100] ;
	copy_str5(p, p2);

	//strcpy(p2, "abcdeeg");
	printf("p2:%s\n", p2);

	system("pause");
}